package com.sbtr.business.classify.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sbtr.business.classify.entity.Classify;
import com.sbtr.open.classify.dto.ClassifyCountDto;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * <p>
 * 标签表 Mapper 接口
 * </p>
 *
 * @author oujh5

 */
public interface ClassifyMapper extends BaseMapper<Classify> {

	int selectMaxSn();

	void updateCountNum(@Param("id")Long id, @Param("num")int num);

	/**
	 * 获取指定任务的标签
	 * @param id
	 * @return
	 */
	Classify selectByCalibrationId(@Param("id")Serializable id);


	ClassifyCountDto classifyCount(@Param("calibrationId")Long calibrationId);

	//	void updateBatchCountNum(@Param("list")List<Item> itemList);
}
